package com.suzhiliang.springbootlesson.hellowWorld;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloWorldController {

    @RequestMapping(value = "index",method = RequestMethod.GET)
    public String helloWorld(){
        return  "helloWorld";
    }

    @RequestMapping(value = "hello",method = RequestMethod.GET)
    public String hello(){
        return  "hello";
    }

}
